<template>
    <el-pagination background layout="prev, pager, next, jumper" :total="total" :page-size="pagesize" :current-page="currentPage" @current-change="handleCurrentChange" @size-change="handleSizeChange"></el-pagination>
</template>
<script>
export default {
    props:[
        'total',
        'pagesize',
        'currentPage'
    ],
    data () {
        return {
            
        }
    },
    mounted () {
        
    },
    methods: {
        
        //分页
        handleSizeChange ( size ) {

            this.pagesize = size;

        },
        //点击下一页
        handleCurrentChange (currentPage) {

            this.currentPage = currentPage;

            var parmar = '?page='+this.currentPage + this.querycondition;
            //最后将这个传递给父组件
            this.obtainUserinfo(parmar);

        },

    }
}
</script>
